//
//  AirCustomButton.h
//  AirButtonView
//
//  Created by Air on 2018/8/3.
//  Copyright © 2018年 Air. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,AirButtonImageViewPosition) {
    AirImagePositionLeft = 0,
    AirImagePositionRight,
    AirImagePositionTop,
    AirImagePositionBottom
};

@interface AirCustomButton : UIControl
@property (nonatomic, strong,readonly) UILabel *titleLabel;
- (void)setTitle:(NSString *)title;
- (void)setTitleColor:(UIColor *)titleColor;

@property(nonatomic,strong,readonly)UIImageView *imageView;
@property(nonatomic,assign)  CGFloat urlImageScale;
- (void)setImage:(UIImage *)image;


@property(nonatomic,strong,readonly)UIImageView *backgroundImageView;
- (void)setBackgroundImage:(UIImage *)backgroundImage;

@property(nonatomic,assign)AirButtonImageViewPosition imageViewPosition;
@property(nonatomic,assign)CGFloat subViewsMargin;

@end
